package com.dindang.propertyfee.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.dindang.propertyfee.mvp.contract.FeeReceivedContract;
import com.dindang.propertyfee.mvp.model.FeeReceivedModel;


@Module
public class FeeReceivedModule {
    private FeeReceivedContract.View view;

    /**
     * 构建FeeReceivedModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public FeeReceivedModule(FeeReceivedContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    FeeReceivedContract.View provideFeeReceivedView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    FeeReceivedContract.Model provideFeeReceivedModel(FeeReceivedModel model) {
        return model;
    }
}